package com.cskaoyan.mapper;

import com.cskaoyan.bean.MallRegion;
import com.cskaoyan.bean.MallRegionExample;
import com.cskaoyan.model.vo.user.CityData;
import com.cskaoyan.model.vo.user.CountyData;
import com.cskaoyan.model.vo.user.ProvinceData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MallRegionMapper {
    long countByExample(MallRegionExample example);

    int deleteByExample(MallRegionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MallRegion record);

    int insertSelective(MallRegion record);

    List<MallRegion> selectByExample(MallRegionExample example);

    MallRegion selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MallRegion record, @Param("example") MallRegionExample example);

    int updateByExample(@Param("record") MallRegion record, @Param("example") MallRegionExample example);

    int updateByPrimaryKeySelective(MallRegion record);

    int updateByPrimaryKey(MallRegion record);

    List<ProvinceData> selectProvince();

    List<CityData> selectCity(int id);

    List<CountyData> selectCounty(int id);
}
